package com.tms.order.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单统计对象 sys_order
 *
 * @author ruoyi
 * @date 2024-10-24
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String ddh;

    /** 始发地 */
    @Excel(name = "始发地")
    private String startaddr;

    /** 目的地 */
    @Excel(name = "目的地")
    private String endaddr;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String name;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long status;

    /** 货物数量 */
    @Excel(name = "货物数量")
    private Long num;

    /** 总体积 */
    @Excel(name = "总体积")
    private Double tj;

    /** 总重量 */
    @Excel(name = "总重量")
    private Double zl;

    /** 运费合计 */
    @Excel(name = "运费合计")
    private Double hj;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDdh(String ddh)
    {
        this.ddh = ddh;
    }

    public String getDdh()
    {
        return ddh;
    }
    public void setStartaddr(String startaddr)
    {
        this.startaddr = startaddr;
    }

    public String getStartaddr()
    {
        return startaddr;
    }
    public void setEndaddr(String endaddr)
    {
        this.endaddr = endaddr;
    }

    public String getEndaddr()
    {
        return endaddr;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setNum(Long num)
    {
        this.num = num;
    }

    public Long getNum()
    {
        return num;
    }
    public void setTj(Double tj)
    {
        this.tj = tj;
    }

    public Double getTj()
    {
        return tj;
    }
    public void setZl(Double zl)
    {
        this.zl = zl;
    }

    public Double getZl()
    {
        return zl;
    }
    public void setHj(Double hj)
    {
        this.hj = hj;
    }

    public Double getHj()
    {
        return hj;
    }
    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ddh", getDdh())
            .append("startaddr", getStartaddr())
            .append("endaddr", getEndaddr())
            .append("name", getName())
            .append("status", getStatus())
            .append("num", getNum())
            .append("tj", getTj())
            .append("zl", getZl())
            .append("hj", getHj())
            .append("time", getTime())
            .toString();
    }
}
